package cn.acac.yygh.hosp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("cn.acac.yygh.hosp.mapper")
@EnableTransactionManagement    // 开启事务管理
@ComponentScan(value = "cn.acac.yygh")  //扫描Swagger2的配置类
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "cn.acac.yygh")
public class HospApplication {
    public static void main(String[] args) {
        SpringApplication.run(HospApplication.class,args);
    }
}
